home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10259 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  649 b 

  1. Path: warp10.smartlink.net!thomash
  2. From: thomash@warp10.smartlink.net (Thomas Hackbarth)
  3. Newsgroups: comp.lang.c++
  4. Subject: help with bytes -> long
  5. Date: 6 Mar 1996 22:30:41 GMT
  6. Organization: SmartLink.net Premier ISP 805-294-1273
  7. Message-ID: <4hl3mh$oue@frodo.smartlink.net>
  8. NNTP-Posting-Host: smartlink.net
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I suck at bit manipulation. I need a macro to convert RGB to a long so I
  12. get this output
  13.  
  14. RED GREEN BLUE  -> LONG
  15. FF   00    FF       FF 00 FF 00
  16.  
  17. Using Windows RGB macro I get this
  18.  
  19. RED GREEN BLUE  -> COLORREF
  20. FF   00    FF       00 FF 00 FF
  21.  
  22. Anyone have any good Ideas?
  23.  
  24. Thanks
  25. Thomas
  26.  
  27.               
  28.